Skip to content

Conversation

@oxkitsune
Copy link
Member

What

Fix RVL depth decoding to only apply inverse quantization when present.
Zero disparity is treated as NaN only for quantized (32FC1) images; non-quantized (16UC1) values now pass through unchanged.

@oxkitsune oxkitsune added 🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself include in changelog labels Dec 19, 2025
@github-actions
Copy link

github-actions bot commented Dec 19, 2025

Web viewer built successfully.

Result Commit Link Manifest
80be4df https://rerun.io/viewer/pr/12289 +nightly +main

View image diff on kitdiff.

Note: This comment is updated whenever you push a commit.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in RVL depth decoding where zero disparity values were incorrectly treated as NaN for non-quantized (16UC1) images. The fix ensures that inverse quantization and zero-to-NaN conversion only apply to quantized (32FC1) images, while non-quantized values pass through unchanged.

Key Changes:

  • Refactored decode_rvl_with_quantization to separate quantized and non-quantized code paths
  • Zero disparity values now only convert to NaN when quantization parameters are present
  • Added comprehensive test coverage for non-quantized images with zero values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@oxkitsune oxkitsune added the consider-patch PRs & issues that should be considered to be cherry-picked to a patch release branch. label Dec 19, 2025
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch. Thanks for handling it and adding a unit test!

@Wumpf Wumpf merged commit 1195494 into main Dec 19, 2025
43 checks passed
@Wumpf Wumpf deleted the gijs/rvl-u16 branch December 19, 2025 18:40
@ntjohnson1 ntjohnson1 removed the consider-patch PRs & issues that should be considered to be cherry-picked to a patch release branch. label Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪳 bug Something isn't working include in changelog 📺 re_viewer affects re_viewer itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants